package services

import (
	"fmt"
	"iris-cirsm/repositories"
)

type CatService interface {
	GetCatName() string
}

type CatServiceManager struct {
	repo repositories.CatRepository
}

func NewCatServiceManager(repo repositories.CatRepository) CatService {
	return &CatServiceManager{repo: repo}
}

func (s *CatServiceManager) GetCatName() string {
	fmt.Println(s.repo.GetCatName())
	return "猫的名字为" + s.repo.GetCatName()
}